package com.gorkr.clientdemo2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gorkr
 * @date 2022/06/25 08:28
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/{id}")
    public String test(@PathVariable("id") Integer id){
        return "client-demo-2" + " my id is " + id;
    }

}
    